<form method="post" action="{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/add','','')}/callbackType/closeCurrent/navTabId/storageAdd" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
<div class="pageContent">
	<div class="pageFormContent" layoutH="55" style="height: 119px; overflow: auto;">	
			<dl class="nowrap">
				<dt>供应商：</dt>
				<dd>
					<input id="supplier.id" name="supplier.id" value="" type="hidden"/>
					<input class="required" id="supplier.name" name="supplier.name" type="text" postField="keyword" suggestFields="name" suggestUrl="{:U(MODULE_NAME.'/Supplier/lookupSuggest')}" lookupGroup="supplier" readonly="readonly"/>
					<a class="btnLook" href="{:U(MODULE_NAME.'/Supplier/lookup')}" lookupGroup="supplier">查找带回</a>					
				</dd>
				<dt>送货人:</dt>
				<dt><input type="text" name="sender" /></dt>
			</dl>
			
			<dl class="nowrap">
				<dt>入库库房：</dt>
				<dd>
					<input id="depot.id" name="depot.id" value="" type="hidden"/>
					<input class="required" id="depot.name" name="depot.name" type="text" suggestFields="name" suggestUrl="{:U(MODULE_NAME.'/Depot/lookupSuggest')}" lookupGroup="depot" readonly="readonly"/>
					<a class="btnLook" href="{:U(MODULE_NAME.'/Depot/lookup')}" lookupGroup="depot">查找带回</a>	
				</dd>
				<dt>收货人:</dt>
				<dt><input type="text" name="receive" /></dt>
			</dl>			

			<dl class="nowrap">
				<dt>入库日期：</dt>
				<dd>
					<input type="text" maxdate="2020-03-13" mindate="2016-03-02" datefmt="yyyy-MM-dd" class="date textInput readonly valid" name="date" readonly="readonly" value="{:date('Y-m-d',time())}"/>
					<!--<a href="javascript:;" class="inputDateButton">选择</a>
					<span class="info"></span>-->
				</dd>
				<dt>操作:</dt>
				<dt><input type="text" name="username" value="{:SESSION('realname')}" readonly="readonly"/></dt>
			</dl>
			<div class="divider"></div>

			<div class="panel" defH="90%">			
				<div>
					<table class="list nowrap itemDetail" addButton="添加行" width="100%">
						<thead>
							<tr>
								<th type="lookup" id="goods.name[#index#]" name="goods.name[#index#]" lookupGroup="goods" lookupUrl="{:U(MODULE_NAME.'/Goods/lookup')}" suggestFields="orgName" size="60" fieldClass="required">物料名称</th>
								<th type="text" name="goods.number[#index#]" size="12" fieldClass="digits required" defaultVal="0" min="1">数量</th>
								<th type="text" name="goods.price[#index#]" size="12" fieldClass="number required" defaultVal="0.00" min="0.01">价格</th>
								<th type="del" width="60">操作</th>
							</tr>
						</thead>
						<tbody>

						</tbody>
					</table>
				</div>
			
			</div>
	</div>			
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button class="close" type="button">关闭</button></div></div></li>
			</ul>
		</div>
</div>
</form>
